/**
 * Copyright (C) 2011 Vinicius Vielmo Cogo, Marcelo Pasin, and the authors
 * indicated in the @author tags.
 * 
 * This file is part of DiversityAgent.
 * 
 * DiversityAgent is a free software: you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published by the
 * Free Software Foundation, either version 3 of the License, or (at your
 * option) any later version.
 * 
 * DiversityAgent is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with DiversityAgent. If not, see <http://www.gnu.org/licenses/>.
 */
package diversity_agent;

/**
 * 
 * @author Vinicius Vielmo Cogo (vielmo at lasige.di.fc.ul.pt)
 * @version 0.1-beta
 * @since 2011-11-18
 * 
 */
public class VirtualMachine
{
	private int		mVmIdOnAgent;
	private int		mVmIdOnCloud;
	private String	mCloudName;
	private String	mHostName;
	private String	mImageName;
	private String	mIpAddress;
	private int		mMemory;

	/**
	 * 
	 * @param theIdOnAgent
	 */
	public VirtualMachine(int theIdOnAgent)
	{
		this.mVmIdOnAgent = theIdOnAgent;
		this.mVmIdOnCloud = -1;
		this.mCloudName = "";
		this.mHostName = "";
		this.mIpAddress = "";
		this.mImageName = "";
		this.mMemory = 1024;
	}

	/**
	 * 
	 * @return
	 */
	public int getIdOnAgent()
	{
		return this.mVmIdOnAgent;
	}

	/**
	 * 
	 * @return
	 */
	public String getImageName()
	{
		return this.mImageName;
	}

	/**
	 * 
	 * @param theImageName
	 */
	public void setImageName(String theImageName)
	{
		this.mImageName = theImageName;
	}

	/**
	 * 
	 * @return
	 */
	public String getHostName()
	{
		return this.mHostName;
	}

	/**
	 * 
	 * @param theHostName
	 */
	public void setHostName(String theHostName)
	{
		this.mHostName = theHostName;
	}

	/**
	 * 
	 * @return
	 */
	public String getCloudName()
	{
		return this.mCloudName;
	}

	/**
	 * 
	 * @param theCloudName
	 */
	public void setCloudName(String theCloudName)
	{
		this.mCloudName = theCloudName;
	}

	/**
	 * 
	 * @return
	 */
	public int getIdOnCloud()
	{
		return this.mVmIdOnCloud;
	}

	/**
	 * 
	 * @param theIdOnCloud
	 */
	public void setIdOnCloud(int theIdOnCloud)
	{
		this.mVmIdOnCloud = theIdOnCloud;
	}

	/**
	 * 
	 * @return
	 */
	public int getMemory()
	{
		return this.mMemory;
	}

	/**
	 * 
	 * @param theMemory
	 */
	public void setMemory(int theMemory)
	{
		this.mMemory = theMemory;
	}

	/**
	 * 
	 * @return
	 */
	public String getIpAddress()
	{
		return mIpAddress;
	}

	/**
	 * 
	 * @param theIpAddress
	 */
	public void setIpAddress(String theIpAddress)
	{
		this.mIpAddress = theIpAddress;
	}
}
